<%
  /*
     文件名称：用户管理
     作者：庞聚文
     创建时间：2010-02-03
     修改时间：2010-02-03
  */
%>

<%@ page language="java" import="java.util.*" pageEncoding="utf-8" import ="s2jsp.bysj.biz.*,s2jsp.bysj.entity.*"%>

<%
   UserBiz userBiz = new UserBiz();
   List listManager = userBiz.selectAllUser(); 
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>用户管理</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">

	<link rel="stylesheet" type="text/css" href="../css/admin.css">
	
  <script language="javascript">
   function yesDelete(){
     alert("成功删除一条用户信息！");
   }
  </script>
  </head>
  
  <body bgcolor="#CCFFFF">
  <div style="margin-left:10%; margin-top:20px; width:620px;">
  <%--     用户管理     --%>
    <table width="500px" border="1px" bgcolor="#F5F5DC" class="table">
	  <tr>
	    <td colspan="3" style="background-color:#6699FF; color:#FFFFFF;"><b>用户管理</b></td>
	  </tr>
	   <tr>
	    <td align="center"><b>用户名</b></td>
		<td align="center"><b>身份代码</b></td>
		<td align="center"><b>删除</b></td>
	  </tr>
	  <%--     循环出所有的用户     --%>
	  <%
	    if(listManager.size() != 0){
	      for(int i=0;i<listManager.size();i++){
	      User user =(User)listManager.get(i);
	  %>
	   <tr>
	    <td align="center"><%=user.getUserName() %></td>
		<td align="center"><%=user.getStatus() %></td>
		<td align="center"><a href="../manage/deleteUser.jsp?id=<%=user.getUserID() %>&p=2">删除</a></td>
	  </tr>
	  <%
	     }
	   } 
	  %>
	</table>
	<div style="font-size:12px;">共有信息<%=listManager.size()%>条</div>
	</div>
  </body>
</html>
